<?php


namespace app\index\controller;


use think\Controller;

class Markdown extends Controller
{
    public function parseMarkdown(){
        if($this->request->isAjax()){
            $parse = new \Parsedown();
            return $parse->text($this->request->param("content"));
        }else{
            return null;
        }
    }
}